// swift-tools-version:4.0
import PackageDescription

let package = Package(
    name: "StoryServer",
    products: [
        .library(name: "StoryServer", targets: ["App"]),
    ],
    dependencies: [
        // 💧 A server-side Swift web framework.
        .package(url: "https://github.com/vapor/vapor.git", from: "3.3.0"),
        // 🍃 An expressive, performant, and extensible templating language built for Swift.
        .package(url: "https://github.com/vapor/leaf.git", from: "3.0.2"),
        // Swift SMTP client.
        .package(url: "https://github.com/IBM-Swift/Swift-SMTP.git", from: "4.0.1"),
        // 🐬 Swift ORM (queries, models, relations, etc) built on MySQL.
        .package(url: "https://github.com/vapor/fluent-mysql.git", from: "3.0.1"),
        // ⚡️Non-blocking, event-driven Redis client.
        .package(url: "https://github.com/vapor/redis.git", from: "3.3.0"),
        // Advanced regular expressions for Swift
        .package(url: "https://github.com/crossroadlabs/Regex.git", from: "1.1.0"),
        // Easy way to work with files, directories and paths in swift on macOS and linux.
        .package(url: "https://github.com/getGuaka/FileUtils.git", from: "0.2.0"),
    ],
    targets: [
        .target(name: "App", dependencies: ["Vapor" ,"Leaf" ,"SwiftSMTP", "FluentMySQL", "Redis", "Regex", "FileUtils"]),
        .target(name: "Run", dependencies: ["App"]),
        .testTarget(name: "AppTests", dependencies: ["App"])
    ]
)

